import requests

from common.token_util import TokenUtil


class IHRMQuery:
    @classmethod
    def query(cls,emp_id):
        url = "http://ihrm2-test.itheima.net/api/sys/user/" + emp_id
        header = {"Authorization": TokenUtil.get_token()}
        resp = requests.get(url=url, headers=header)
        return resp

    @classmethod
    def query_002(cls):
        url = "http://ihrm2-test.itheima.net/api/sys/user/11111111111111"
        header = {"Authorization": TokenUtil.get_token()}
        resp = requests.get(url=url, headers=header)
        return resp

    @classmethod
    def query_003(cls):
        url = "http://ihrm2-test.itheima.net/api/sys/user/"
        header = {"Authorization": TokenUtil.get_token()}
        resp = requests.get(url=url, headers=header)
        return resp